package com.gp.learn.ssm.base.system.mapper;

import com.gp.learn.ssm.base.core.mybaits.base.mapper.SuperMapper;
import com.gp.learn.ssm.base.core.security.model.OpenAuthority;
import com.gp.learn.ssm.base.system.entity.BaseAuthority;

import java.util.List;
import java.util.Map;

/**
 * 系统权限-菜单权限、操作权限、API权限 Mapper 接口
 * @author gp
 * @since 2020-08-07
 */
public interface BaseAuthorityMapper extends SuperMapper<BaseAuthority> {

    List<OpenAuthority> selectAuthorityAll(Map map);

    List<OpenAuthority> selectAuthorityByRole(Long roleId);

}
